#include "metanet.h"
#include "metanet_malloc.h"


struct test {
	uint32_t starttime;
};


struct test*
test_create(void) {
	struct test *inst = (struct test*)metanet_malloc(sizeof(*inst));
	inst->starttime = 0;
	return inst;	
}

void 
test_release(struct test *inst) {
	metanet_free(inst);
}

static int
test_cb(struct metanet_context *ctx, void *ud, int type, int session, uint32_t source, const void *msg, size_t sz) {
	// struct test *inst = ud;
	return 0;
}

int
test_init(struct test *inst, struct metanet_context *ctx, const char *parm) {
	metanet_callback(ctx, (void*)inst, (metanet_cb)test_cb);
	return 0;
}